package top.tenebrous.termbor.rpc.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import top.tenebrous.termbor.rpc.api.HelloService;

/**
 *
 * @author yazhang6
 */
@SpringBootApplication(scanBasePackages = "top.tenebrous")
public class TermborRpcClientExampleApplication {

    public static void main(String[] args) {
        SpringApplication.run(TermborRpcClientExampleApplication.class, args);
    }

    @Bean
    public RpcClient rpcClient() {
        return new RpcClient("124.222.198.3:8848", "nacos", "randomWeight", "cglib", "1.0.0", "jestic", "hessian2",
            3000, false, false);
    }
}
